package com.lengyu.vxminiprogram.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.lengyu.vxminiprogram.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author liuyu
 * @since 2023-01-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="User对象", description="")
public class User extends BaseEntity{

    private static final long serialVersionUID = 1L;

    private String username;

    @TableField(value = "password", updateStrategy = FieldStrategy.NOT_EMPTY) // 新增和更新执行
    private String password;

    private String dingUserId;

    private String dingDeptIds;

    private String vxOpenId;
    private String vxNickName;
    private String vxAvatar;
    private String phoneNo;

    private String avatar;
    private String roles;
    private Integer sex;


    private LocalDateTime birthday;

    private String email;

    private boolean deleteFlag;

}
